<?php if ($this->mode == INSERT_MODE): ?>
    <?php $action = $this->url(); ?>
    <?php $title = 'New Signer Status' ?>
<?php else: ?>
    <?php $action = $this->url(array('action' => 'editsignerstatus')); ?>
    <?php $title = 'Edit Signer Status' ?>
<?php endif; ?>

<h1>
    <?php echo $title ?>
</h1>

<form method='POST' action='<?php echo $action ?>' id='newsignerstatus'>
    <div class='wrap-content'>
        <label>
           Signer Status Name
        </label>
        <div class='content'>
            <div class='wrap-input'>
                <input type='text' name='name' value='<?php echo isset($this->signerstatus) ? $this->signerstatus->name: '' ?>'/>
                <?php echo $this->partial("/_partial/field_error.phtml", array('errors' => $this->errors, 'field' => 'name')) ?>
            </div>
            <input type='submit' value='Save' class='submit-button'/>
            <a href='<?php echo $this->url(array('action' => 'signerstatus', 'module' => 'admin', 'controller' => 'index')) ?>'>
                <input type='button' value='Cancel' class='submit-button'/>
            </a>
        </div>
    </div>
</form>

